package blogsys.demo.bean;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色权限
 *
 * 一个角色用户多的权限
 */
@Alias("RolePermission")
public class RolePermission implements Serializable {
    private int rolePermissionId;
    private String rolePermissionRoleId;
    private String rolePermissionPermissionId;
    private Date rolePermissionCreateDate;

    public RolePermission() {
    }

    public RolePermission(int rolePermissionId, String rolePermissionRoleId, String rolePermissionPermissionId, Date rolePermissionCreateDate) {
        this.rolePermissionId = rolePermissionId;
        this.rolePermissionRoleId = rolePermissionRoleId;
        this.rolePermissionPermissionId = rolePermissionPermissionId;
        this.rolePermissionCreateDate = rolePermissionCreateDate;
    }

    public int getRolePermissionId() {
        return rolePermissionId;
    }

    public void setRolePermissionId(int rolePermissionId) {
        this.rolePermissionId = rolePermissionId;
    }

    public String getRolePermissionRoleId() {
        return rolePermissionRoleId;
    }

    public void setRolePermissionRoleId(String rolePermissionRoleId) {
        this.rolePermissionRoleId = rolePermissionRoleId;
    }

    public String getRolePermissionPermissionId() {
        return rolePermissionPermissionId;
    }

    public void setRolePermissionPermissionId(String rolePermissionPermissionId) {
        this.rolePermissionPermissionId = rolePermissionPermissionId;
    }

    public Date getRolePermissionCreateDate() {
        return rolePermissionCreateDate;
    }

    public void setRolePermissionCreateDate(Date rolePermissionCreateDate) {
        this.rolePermissionCreateDate = rolePermissionCreateDate;
    }

    @Override
    public String toString() {
        return "RolePermission{" +
                "rolePermissionId='" + rolePermissionId + '\'' +
                ", rolePermissionRoleId='" + rolePermissionRoleId + '\'' +
                ", rolePermissionPermissionId='" + rolePermissionPermissionId + '\'' +
                ", rolePermissionCreateDate=" + rolePermissionCreateDate +
                '}';
    }
}
